package com.itheima.zhuanhuan;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/*
字节 ->字符   输入流  字节字符输入转换流
 */
public class Demo02 {

    public static void main(String[] args) throws IOException {
        //使用转换流 读文件
        InputStreamReader isr = new InputStreamReader(new FileInputStream("day13\\f.txt"),"gbk");
        int b;
        while ((b=isr.read())!=-1){
            System.out.println((char)b);
        }

        isr.close();

    }
}
